<template>
  <div class="important">
    <MoniterItem title="隔离人员扫码预警">
      <template #content>
        <div style="height: 38.5vh">
          <div class="stay-warning-box">
            <div class="stay-warning-item">
              <div class="position-name-box">
                <div class="position-name">xxxx超市</div>
                <span>场所名称</span>
              </div>
              <div class="position-info">
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">近7日日均扫码</div>
                </div>
                <div class="position-info-item line"></div>
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">当日扫码量</div>
                  <div class="position-warning">差异较大</div>
                </div>
              </div>
            </div>
            <div class="stay-warning-item">
              <div class="position-name-box">
                <div class="position-name">xxxx超市</div>
                <span>场所名称</span>
              </div>
              <div class="position-info">
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">近7日日均扫码</div>
                </div>
                <div class="position-info-item line"></div>
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">当日扫码数量</div>
                  <div class="position-warning">差异较大</div>
                </div>
              </div>
            </div>
            <div class="stay-warning-item">
              <div class="position-name-box">
                <div class="position-name">xxxx超市</div>
                <span>场所名称</span>
              </div>
              <div class="position-info">
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">近7日日均扫码</div>
                </div>
                <div class="position-info-item line"></div>
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">当日扫码数量</div>
                  <div class="position-warning">差异较大</div>
                </div>
              </div>
            </div>
            <div class="stay-warning-item">
              <div class="position-name-box">
                <div class="position-name">xxxx超市</div>
                <span>场所名称</span>
              </div>
              <div class="position-info">
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">近7日日均扫码</div>
                </div>
                <div class="position-info-item line"></div>
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">当日扫码数量</div>
                  <div class="position-warning">差异较大</div>
                </div>
              </div>
            </div>
            <div class="stay-warning-item">
              <div class="position-name-box">
                <div class="position-name">xxxx超市</div>
                <span>场所名称</span>
              </div>
              <div class="position-info">
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">近7日日均扫码</div>
                </div>
                <div class="position-info-item line"></div>
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">当日扫码数量</div>
                  <div class="position-warning">差异较大</div>
                </div>
              </div>
            </div>
            <div class="stay-warning-item">
              <div class="position-name-box">
                <div class="position-name">xxxx超市</div>
                <span>场所名称</span>
              </div>
              <div class="position-info">
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">近7日日均扫码</div>
                </div>
                <div class="position-info-item line"></div>
                <div class="position-info-item">
                  <div class="position-count">1171<text>次</text></div>
                  <div class="position-tip">当日扫码数量</div>
                  <div class="position-warning">差异较大</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </template>
    </MoniterItem>
  </div>
</template>

<script>
import MoniterItem from "@/components/MoniterCard.vue";
import request from "../../../utils/request.js";
export default {
  components: {
    MoniterItem,
  },
  data() {
    return {
      // 表格数据
    }
  },
  mounted() {
   
  },
  methods: {

  },
}
</script>

<style lang="less" scoped>
.stay-warning-box {
  height: 95%;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  padding: 0 35px;
  margin: 0 auto;
  margin-top: 10px;
  box-sizing: border-box;
}

.stay-warning-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.position-name-box {
  width: 154px;
  height: 77px;
  background-image: url('@/assets/warning-bg.png');
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .position-name {
    font-size: 18px;
    font-family: Source Han Sans CN;
    font-weight: 500;
    color: #00EAFF;
  }

  span {
    font-size: 14px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #FFFFFF;
  }
}

.position-info {
  display: flex;
  align-items: center;
}

.position-info-item {
  display: flex;
  flex-direction: column;
  width: 110px;
}

.position-info-item.line {
  width: 1px;
  height:32px;
  background: #fff;
  margin: 0 10px;
}

.position-count {
  font-size: 18px;
  font-family: Source Han Sans CN;
  font-weight: 500;
  color: #53FACD;

  text {
    font-size: 12px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #FFFFFF;
  }
}

.position-warning {
  font-size: 12px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  color: #F83D25;
}
</style>
